package day015.homework.p10;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class Test {
    public static void main(String[] args) {
        Student s1 = new Student("张三", 96.6, 1);
        Student s2 = new Student("李四", 96.6, 2);
        Student s3 = new Student("王五", 96.6, 3);
        Student s4 = new Student("麻子", 96.6, 1);

        Map<Integer, Student> map = new HashMap<>();
        map.put(s1.getId(), s1);
        map.put(s2.getId(), s2);
        map.put(s3.getId(), s3);
        map.put(s4.getId(), s4);

        List<Map<Integer, Student>> list = new ArrayList<>();
        list.add(map);

        System.out.println(list);

    }
}
